package com.atxiaodei.kabudashejimoshi.责任链模式.校验采用设计模式;


import com.atxiaodei.kabudashejimoshi.责任链模式.Member;

/**
 * 负责组装链式结构
 */
public class MemberServer {

    public void login(String LoginName,String loginPass){

        ValidateHandler validateHandler = new ValidateHandler();

        LoginHandler loginHandler = new LoginHandler();

        AuthHandler authHandler = new AuthHandler();

        validateHandler.next(loginHandler);

        loginHandler.next(authHandler);

        validateHandler.doHandle(new Member(LoginName,loginPass));


    }

}
